unit SiparisTopluislem;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons, ExtCtrls;

type
  TSiparisTopluislemF = class(TForm)
    bKapat: TBitBtn;
    GroupBox1: TGroupBox;
    b1: TBitBtn;
    b2: TBitBtn;
    b3: TBitBtn;
    b4: TBitBtn;
    GroupBox2: TGroupBox;
    b6: TBitBtn;
    b7: TBitBtn;
    GroupBox3: TGroupBox;
    b5: TBitBtn;
    bUnitydeSilinenSiparisleriSil: TBitBtn;
    BitBtn1: TBitBtn;
    BitBtn2: TBitBtn;
    BitBtn3: TBitBtn;
    cbUrunBilesenHaric: TCheckBox;
    procedure FormShow(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure SEc(Sender: TObject);
    procedure bKapatClick(Sender: TObject);
    procedure FormKeyPress(Sender: TObject; var Key: Char);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  SiparisTopluislemF: TSiparisTopluislemF;

implementation

uses data, udmteknik;
{$R *.dfm}

procedure TSiparisTopluislemF.FormShow(Sender: TObject);
begin
  YerAyarla(Self, False);
end;

procedure TSiparisTopluislemF.FormClose(Sender: TObject;
  var Action: TCloseAction);
begin
  Action := CaFree;
  SiparisTopluislemF := nil;
end;

procedure TSiparisTopluislemF.Sec(Sender: TObject);
begin
  if cbUrunBilesenHaric.Checked then
    dm.islemid := (sender as tbitbtn).tag + 1000
  else
    dm.islemid := (sender as tbitbtn).tag;
    
  Modalresult := mrOk;
end;

procedure TSiparisTopluislemF.bKapatClick(Sender: TObject);
begin
  Modalresult := mrCancel;
end;

procedure TSiparisTopluislemF.FormKeyPress(Sender: TObject; var Key: Char);
begin
  if Key = #27 then Close;
end;

end.

